package com.justrun.zjutsystem.zjutsystem.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.justrun.zjutsystem.zjutsystem.entity.Teacher;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.justrun.zjutsystem.zjutsystem.vo.TeacherSelectorVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 教师用户信息表 Mapper 接口
 * </p>
 *
 * @author chandler
 * @since 2020-09-27
 */
@Repository
public interface TeacherMapper extends BaseMapper<Teacher> {


    IPage<TeacherSelectorVo> findAllTeacher(Page<TeacherSelectorVo> page, @Param(Constants.WRAPPER) QueryWrapper queryWrapper);


    IPage<TeacherSelectorVo> findAllTeacher2(Page<TeacherSelectorVo> page, @Param("teacherId") String teacherId,
                                            @Param("teacherName")String teacherName,@Param("gender")String gender);




}
